package com.string;

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class CountCharacter {
	public static void main(String[] args)throws Exception {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		System.out.println("Enter String");
		String str=br.readLine();
		int count=0;
		for(int i=0;i<str.length();i++){
			if(str.charAt(i)=='a'){
				count++;
			}
		}
		System.out.println("occurrence : "+count);
	}
}
